import request from '../utils/request'

//获取关注数和粉丝数
export function getFollowCount(uid){
  return request.get('auth/follow/count?uid='+uid)
}

//获取关注列表
export function getFollowingList(uid){
  return request.get('auth/following?uid='+uid)
}

//获取粉丝列表
export function getFollowerList(uid){
  return request.get('auth/follower?uid='+uid)
}

//判断是否关注
export function getIsFollow(uid,fid){
    return request.get('auth/isFollow?uid='+uid+'&fid='+fid)
}

//关注
export function follow({id}){
    return request.post('auth/follow',{id})
}

//取关
export function unsubscribe({id}){
    return request.post('auth/unsubscribe',{id})
}

